package com.canal.admin.transfer.req.channel;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author yangbo
 * @date 2020-06-23 16:05
 */
@Getter
@Setter
public class ChannelUpReq {

    @NotNull(message = "未指定渠道")
    private Integer id;

    @NotBlank(message = "渠道名不能为空")
    private String name;

    @NotBlank(message = "渠道账号不能为空")
    @Pattern(regexp = "^[A-Za-z0-9]+$",message = "账号只能为字母或数字")
    private String buzName;

}
